import Vue from "vue" //引入vue
import Vuex from "vuex" // 引入vuex
Vue.use(Vuex) // 让vue使用vuex
// 通过vuex构造函数创建store对象
const store = new Vuex.Store({
    state: {
		user:{
			faceUrl: "https://img0.baidu.com/it/u=2455291866,2318694829&fm=26&fmt=auto",
			username: "未登录",
		},
		
    },  
    mutations: {
		SET_USER(state,value){
			state.user = value
		},
		
    },
}) 
export default store //导出store对象